<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<link rel="stylesheet" type="text/css" href="resources/css/style.css">
		<script src="resources/js/comm.js"></script>
		<script type="text/javascript">
	function checkForm() {
		var apk = $("apk").value;
		if(apk == "" || !checkApk(apk)){
			alert("请您选择正确文件类型\n 必须为APK");   
		} else {
			loading();
			submitForm("addform");
		}
	}
</script>
	</head>

	<body onkeydown="if(event.keyCode==27) return false;">
		<jsp:include page="../inc/header.jsp"></jsp:include>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="resources/images/other/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="resources/images/other/tab_03.gif" width="12"
									height="30" />
							</td>
							<td>
								<div class="page_title">
									<img align="middle" src="resources/images/other/tb.gif"
										width="16" height="16" />
									软件信息管理 > 添加软件
								</div>
							</td>
							<td>
								<div class="button_bar">
									<input value="返回" type="button" id="btn_back" class="common_button" onclick="javascript:history.go(-1);loading();">
									<input value="下一步" type="button" id="btn_ok" class="common_button" onclick="checkForm();">
									<input value="刷新" type="button" id="btn_re" class="common_button" onclick="location='software.do?method=toAdd1';loading();">
								</div>
							</td>
							<td width="16" height="30">
								<img src="resources/images/other/tab_07.gif" width="16"
									height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="resources/images/other/tab_12.gif">
							</td>
							<td>
								<form action="software.do" method="post" id="addform" enctype="multipart/form-data">
									<input type="hidden" name="method" value="doAdd1">
									<table cellspacing="1" cellpadding="0" class="query_form_table">
									<tr>
										<th><b>第1步:上传APK文件</b></th>
										<td>
											<input class="comm_input" type="file" name="icon" id="apk"/>
											<span class="red_star">*</span>
										</td>
									</tr>										
									</table>
								</form>
							</td>
							<td width="8" background="resources/images/other/tab_15.gif">
							</td>
						</tr>
						<tr>
							<td width="8" background="resources/images/other/tab_12.gif"></td>
							<td>
								<b>上传新软件步骤：</b>
								<br/>
								第1步:上传APK文件 选择需要发布软件的APK文件，上传成功后可以智能分析出您的软件中诸如版本，包名，icon等信息;
								<br/>
								第2步:填写app信息 
								该步骤您会看到智能分析出的软件信息，除此之外，需要您输入软件的名字，描述，同时需要您选择分类，标签等信息;
								<br/>
								第3步:上传软件截图
								在这里上传这个软件的节截图，使得用户更了解这个软件;
							</td>
							<td width="8" background="resources/images/other/tab_15.gif"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="resources/images/other/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="resources/images/other/tab_18.gif" width="12"
									height="35" />
							</td>
							<td>
								&nbsp;
							</td>
							<td width="16">
								<img src="resources/images/other/tab_20.gif" width="16"
									height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
<jsp:include page="../inc/footer.jsp"></jsp:include>